package com.erp.erp_dao.CustomerComplaint;

import com.erp.erp_entitys.CustomerComplaint.ContractInfoVo;
import com.erp.erp_entitys.CustomerComplaint.CustomerComplaintProductEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ICustomerComplaintProductDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(CustomerComplaintProductEntity record);

    int insertSelective(CustomerComplaintProductEntity record);

    CustomerComplaintProductEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CustomerComplaintProductEntity record);

    int updateByPrimaryKey(CustomerComplaintProductEntity record);

    List<CustomerComplaintProductEntity> selectProductByCid(Integer cId);

    int deleteByIdList(@Param("idList") List<Integer> idList);

    List<ContractInfoVo> getContractList(ContractInfoVo ccVo);

    List<CustomerComplaintProductEntity> getContractProductInfo(Integer id);

    List<CustomerComplaintProductEntity> getProductInfoByContractIds(@Param("idList") List<Integer> idList);

}